package translate;

import temp.Label;
import tree.Exp;
import tree.StmList;
import util.BoolList;
import frame.ExFrame;
import frame.Frame;

public class Frag {
	
	static public FragList list = null;
	
	public String name;
	public Frame frame;
	public tree.Exp irtree;
	public StmList canonic;
	
	public Frag( Frame iframe , tree.Exp ntree ){
		frame = iframe;
		irtree = ntree;
	}
	
	static public Frag newFrag( Label l , BoolList b ){
		
		Frame nframe = new ExFrame().newFrame( l, b );
		
		tree.Exp ntree = null;
		
		Frag novo = new Frag(nframe , ntree );
		
		
		list = new FragList( novo , list );
		
		return novo;
	}
}